/*
 * Filename:    AuditToWarningTask.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年12月30日
 */
package com.paic.mhis.hcpms.warning.biz.service;

import java.util.Arrays;

import com.paic.pafa.app.lwc.core.context.support.PafaCoreContexton;
import com.paic.pafa.logging2.Level;

public class AuditToWarningTask implements Runnable {
	private AuditToWarningExtractService auditToWarningExtractService;

	public AuditToWarningTask(AuditToWarningExtractService auditToWarningExtractService) {
		this.auditToWarningExtractService = auditToWarningExtractService;
	}

	@Override
	public void run() {
		try {
			auditToWarningExtractService.extractAuditData();
		} catch (Exception e) {
			PafaCoreContexton
					.getInstance()
					.getErrorLogger()
					.log("", Level.SEVERE, AuditToWarningTask.class.getName(), "printException",
							e.getMessage() + ": " + Arrays.toString(e.getCause().getStackTrace()), e.getCause(), null);
		}
	}

}
